package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.DeliveryAddress;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface DeliveryAddressService extends IService<DeliveryAddress> {

    Page<DeliveryAddress> pageList(PageUtil pageUtil, String storeUid, String staffUid, String name, Integer status);

    @Transactional(rollbackFor = Exception.class)
    void deleteByStaffIdAndId(String staffUid, Long id);

    List<DeliveryAddress> getByStoreUidAndStaffUid(String storeUid, String staffUid);

}
